package com.qhhc.hospital.mapper;

import com.qhhc.hospital.entity.Bed;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BedMapper {
    public int insertBed(Bed bed);
    
    public List<Bed> selectAllBeds();
    
    public Bed selectBedById(@Param("b_id") Integer bId);
    
    public List<Bed> selectBedByPatientId(@Param("p_id") Integer pId);
    
    public List<Bed> selectBedByDoctorId(@Param("d_id") Integer dId);
    
    public int updateBed(Bed bed);
    
    public int deleteBed(@Param("b_id") Integer bId);
} 